import service from './request'
export const listApi = (startPage,endPage,specName) => {
    return service({
        url: '/manage/specification/list/'+startPage+'/'+endPage+'?specName='+specName,
        method: 'get',
    })
};
export const addSpecificationApi = (data) => {
    return service({
        url: '/manage/specification/add',
        method: 'post',
        data
    })
};
export const updateSpecificationApi = (data) => {
    return service({
        url: '/manage/specification/update',
        method: 'post',
        data
    })
};
export const findByIdApi = (id) => {
    return service({
        url: '/manage/specification/findById/'+id,
        method: 'post',
    })
};
export const delByIdApi = (id) => {
    return service({
        url: '/manage/specification/delById/'+id,
        method: 'post',
    })
};
export const delByBath = (data) => {
    return service({
        url: '/manage/specification/delByBath',
        method: 'post',
        data
    })
};